Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce starknet verify, verifier set #48

Merged
merged 73 commits into from
Dec 12, 2024
Merged

Conversation

puhtaytow
Copy link
Member

@puhtaytow puhtaytow commented Nov 25, 2024

Description

Introduce starknet verify verifier set in ampd.

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues

Steps to Test

Expected Behaviour

Other Notes

@puhtaytow puhtaytow marked this pull request as draft November 25, 2024 16:55
@puhtaytow puhtaytow requested a review from ctoyan December 2, 2024 14:57
@puhtaytow puhtaytow marked this pull request as ready for review December 2, 2024 14:57
info!("ready to verify verifier set in poll",);

let vote = transaction_response.map_or(Vote::NotFound, |tx_receipt| {
verify_verifier_set(&tx_receipt.1, &verifier_set, &source_gateway_address)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is tx_receipt.1 always the gateway event itself?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assumption here is, that ampd receives to "verify" a correct id. If its not then verify_verifier_set would return Vote::NotFound, which is the expected behaviour.

Copy link
Member

@ctoyan ctoyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add some tests? I left guidelines for those.
If you have questions, I believe I can help, just ping me.

@ctoyan ctoyan merged commit a7ddfa0 into starknet_v2 Dec 12, 2024
1 of 6 checks passed
@ctoyan ctoyan deleted the marc/starknet_v2_2 branch December 12, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants